package work.huangxin.share.config;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import work.huangxin.share.constant.OssConstant;

/**
 * @author 季台星
 * @Date 2023 04 15 16 19
 */
@Configuration
public class OSSConfig {
    @Bean
    public OSS OssClient(){
        return new OSSClient(OssConstant.ACCESS_ENDPOINT,
                    OssConstant.ACCESS_ID,
                    OssConstant.ACCESS_SECRET);
    }
}
